<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<html xmlns:th="http://www.thymeleaf.org">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:mvc="http://www.springframework.org/schema/mvc"
>
<head>
    <meta charset="UTF-8">
    <title>发布 - 码匠社区222222222</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="/css/bootstrap-theme/bootstrap-theme.min.css"/>
    <link rel="stylesheet" href="/css/bootstrap-theme.min.css"/>
    <link rel="stylesheet" href="/css/community.css"/>
    <script src="/js/bootstrap.js/" type="application/javascript"></script>
    <script type="text/javascript" src="/js/bootstrap.js"></script>

    <link rel="stylesheet" href="css/bootstrap.css">
    <link rel="stylesheet" href="css/bootstrap-theme.css">
    <link rel="stylesheet" href="css/community.css">
    <script src="js/bootstrap.js/bootstrap.min.js" type="application/javascript"></script>
    <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
<div th:insert="~{navigation::nav}"></div>
<!--  当前位置报错 先注释   <div th:insert="~{navigation :: nav}"></div>-->
<div class="container-fluid main">
    <div class="row">
        <!--所有的尺寸 最大为12-->
        <div class="col-lg-9 col-md-12 col-sm-12 col-xs-12" style="background-color: #9c3328">
            <h2><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 发起</h2>
            <hr>

            <form action="/puslishpost" method="post">
                <input type="hidden" name="id">
                <div class="form-group">
                    <label for="title">问题标题（简单扼要）:</label>
                    <input type="text" class="form-control" th:value="${title}" id="title" name="title"
                           placeholder="问题标题……"
                           autocomplete="off">
                </div>
                <div class="form-group" id="question-editor" th:background="red">
                    <label for="description">问题补充 (必填，请参照右侧提示):</label>
                    <textarea name="description" id="description"
                              class="form-control"
                              cols="30"
                              rows="10"
                              th:value="${description}"

                    ></textarea>
                </div>

                <script type="text/javascript">
                    $(function () {
                        var editor = editormd("question-editor", {
                            width: "100%",
                            height: 450,
                            path: "/js/lib/",
                            delay: 0,
                            watch: false,
                            placeholder: "请输入问题描述",
                            imageUpload: true,
                            imageFormats: ["jpg", "jpeg", "gif", "png", "bmp", "webp"],
                            imageUploadURL: "/file/upload",
                        });
                    });
                </script>

                <div class="form-group">
                    <label for="tag">添加标签:</label>
                    <input type="text" class="form-control" id="tag" name="tag" th:text="${description}"
                           autocomplete="off"
                           placeholder="输入标签，以，号分隔"
                           onclick="showSelectTag()"
                    >


                    <!--<div id="select-tag" class="publish-tag-tab">-->
                    <ul class="nav nav-tabs" role="tablist">
                        <!--<li role="presentation" th:each="selectCategory,selectCategoryStat"-->
                        <!--th:class="  'active''}">-->
                        <!--<a th:href=aria-controls="home" role="tab" data-toggle="tab"></a>-->
                        <!--</li>-->
                    </ul>
                    <!--<div class="tab-content">-->
                    <!--<div role="tabpanel"-->
                    <!--th:class=" ">-->
                    <!--<span>-->
                    <!--<span>-->
                    <!--<span class="community-tag" onclick="selectTag(this)"-->

                    <!--&gt;-->
                    <!--</span>-->
                    <!--</span>-->
                    <!--</span>-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--</div>-->

                    <div class="container-fluid main ">
                        <div class="row">
                            <!--<div class="col-lg-9 col-md-12 col-sm-12 col-xs-12">-->
                            <!--<div class="alert alert-danger col-lg-12 col-md-12 col-sm-12 col-xs-12"-->
                            <!--th:text="${error}"-->
                            <!--th:if="${error != null}">-->
                            <div class="col-lg-3 col-md-12 col-sm-12 col-xs-12">
                                <span class="alert alert-danger" th:text="${error}" th:if="${error}!=null"></span>
                                <button type="submit" class="btn btn-success"
                                        style="margin-bottom: 20px ;margin-left: 100px">
                                    发布
                                </button>
                            </div>
                        </div>
                    </div>

                    <!--</div>-->
                </div>

            </form>
        </div>
        <div class="col-lg-3 col-md-12 col-sm-12 col-xs-12" style="background-color: #2A00FF">
            <h3>问题发起指南</h3>
            • 问题标题: 请用精简的语言描述您发布的问题，不超过25字 <br>
            • 问题补充: 详细补充您的问题内容，并确保问题描述清晰直观, 并提供一些相关的资料<br>
            • 选择标签: 选择一个或者多个合适的标签，用逗号隔开，每个标签不超过10个字<br>
        </div>
    </div>
</div>
<!--<div th:insert="~{footer :: foot}"></div>-->
</body>
</html>
<!--http://192.168.100.102:8887/css/bootstrap.min.css-->